package com.zusmart.base.looper.support;

import com.zusmart.base.looper.ThreadEventLoop;
import com.zusmart.base.looper.ThreadEventLoopGroup;

public abstract class AbstractThreadEventLoopGroup extends AbstractEventLoopGroup implements ThreadEventLoopGroup {

	protected AbstractThreadEventLoopGroup(int eventLoopSize, String eventLoopName) {
		super(eventLoopSize, eventLoopName);
	}

	@Override
	public ThreadEventLoop getEventLoop() {
		return (ThreadEventLoop) super.getEventLoop();
	}

	@Override
	public ThreadEventLoop getEventLoop(int index) {
		return (ThreadEventLoop) super.getEventLoop(index);
	}

	@Override
	protected abstract ThreadEventLoop createEventLoop(String name);

}